package com.abc.cloud.common.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class LocalDateTimeUtil {

    public static String formatter(LocalDateTime time, String string){
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern(string);
        String formattedDateTime = time.format(formatter);
        return formattedDateTime;
    }
}
